package entity;

import java.util.ArrayList;

public class TableName {

    /**
     * 表名
     */
    private String tableName;

    /**
     * 表类型
     */
    private String tableType;

    /**
     * 表注释
     */
    private String comments;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableType() {
        return tableType;
    }

    public void setTableType(String tableType) {
        this.tableType = tableType;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public static TableName convertToEntity(String[] convertList){
        TableName tableNameEntity = new TableName();
        tableNameEntity.setTableName(convertList[0]);
        tableNameEntity.setTableType(convertList[1]);
        tableNameEntity.setComments(convertList[2]);
        return tableNameEntity;
    }
}
